package ch06.sz04;


import com.ktjy.dao.sysUser.service.SysUserService;
import com.ktjy.pojo.SysUser;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SysUserTest {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("sz4.xml");

        SysUserService sysUserService = context.getBean(SysUserService.class);

        // 示例调用
        SysUser user = new SysUser();
        // 设置用户属性
        boolean added = sysUserService.add(user);
        System.out.println("添加用户结果: " + added);
    }
}
